<?
class DashboardLeftNavForm extends Form {

    function DashboardLeftNavForm() {

        Form::Form('DashboardLeftNavForm');
        $this->link_css('style/personal.css');
        $this->link_js('javascript/jquery/packed/jquery.jeditable.js');
    }

    function draw() 
    {
        global $display;
        $avatar_link = '';
        
        $avatar_url = 'style/images/no_avatar_item.gif';

        if (User::$current->data['avatar_url'] != '')
        {
            $avatar_link = "http://" . CGlobal::$img_server[User::$current->data['img_server']] . User::$current->data['avatar_url'];
            $avatar_url = AZLib::getImageThumb(User::$current->data['avatar_url'], 80, 80, 0, User::$current->data['img_server']);
        }

        $display->add('full_name', User::$current->data['full_name']);
        $display->add('avatar_link', $avatar_link);
        $display->add('avatar_url', $avatar_url);
        
        $display->add('user_name',User::user_name());	
		
        $display->output('DashboardLeftNav');
    }

}
?>